package cn.com.api.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

public class ApiDingDan4erp implements Serializable {

	private static final long serialVersionUID = 1L;
	// 订单号
	private Integer rid;
	// 订单名称
	private String titles;
	// 商铺id
	private Integer shop_id;
	// 用户id
	private String u_id;
	// 配送方式
	private String peisong;
	// 订餐用户姓名
	private String name;
	// 订餐菜品id
	private String tel;
	// 订餐电话
	private String mobile;
	// 邮编
	private String email;
	// 邮编地址
	private String zip;
	// 送货地址
	private String address;
	// 设置送达时间
	private Date dtime;
	// 备注
	private String bz;
	// 订单总价格
	private double money;
	// 订单提交账号
	private String appuser;
	// 订单提交时间
	private Date appdate;
	// ip地址
	private String rip;
	// 订单状态：1： 已下订单 2送餐员领取任务 3 用户未领取 4用户已领取 5 订单完成 6订单因故未完成 原因 9删除
	private Integer enable;
	// 支付状态 0:已下单未支付 1:已支付 2:已退款
	private Integer zi_status;
	// 订单物流状态
	/**
	 * 1:商户未确认 2:商户确认接受订单 3:等待配送接单 4:配送确认接受订单 5:配送取货成功(配送中) 6:用户确认收货 7:退货
	 */
	private Integer dd_status;
	// 支付方式：0:余额支付 1:支付宝 2:微信 3:货到付款
	private String zf_type;
	/** 余额支付金额 */
	private double remainmoney;
	/** 交易流水号 */
	private String serial;
	/** 支付订单号 */
	private String serialFlagNo;
	/** 订单类型：0-购物订单，1-充值订单 */
	private Integer orderType;
	// 支付时间
	private Date paytime;
	/** 订单商品总金额 */
	private double sumGoodsPrice;
	/** 订单配送费 */
	private double sendFee;
	/** 收货时间 */
	private Date takeGoodsTime;
	/** 订单取消原因 */
	private String cancelReason;
	/** 时间用字符串表示，便于前台显示 */
	private String appdate_str;
	private String paytime_str;
	private String takeGoodsTime_str;
	/** 订单的货品ids，,分隔 */
	private String product_ids;
	/** 订单的购物记录ids,,分隔 */
	private String car_ids;
	/** 应付金额(优惠后金额) */
	private double payMoney;
	/** 是否使用优惠券 */
	private Integer is_quan;
	/** 优惠券id */
	private Integer quan_id;

	/** 配送时间 格式 2015-11-10 10:00-10:30 */
	private String sendDate;
	
	/** 收货地址的经度 */
	private String longitude;
	/** 收货地址的纬度 */
	private String latitude; 
	/** 是否配送：超出配送距离的不配送  客户自提 is_send */
	private Integer is_send;
	
	public Integer getRid() {
		return rid;
	}

	public void setRid(Integer rid) {
		this.rid = rid;
	}

	public String getTitles() {
		return titles;
	}

	public void setTitles(String titles) {
		this.titles = titles;
	}

	public Integer getShop_id() {
		return shop_id;
	}

	public void setShop_id(Integer shop_id) {
		this.shop_id = shop_id;
	}

	public String getU_id() {
		return u_id;
	}

	public void setU_id(String u_id) {
		this.u_id = u_id;
	}

	public String getPeisong() {
		return peisong;
	}

	public void setPeisong(String peisong) {
		this.peisong = peisong;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getTel() {
		return tel;
	}

	public void setTel(String tel) {
		this.tel = tel;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getZip() {
		return zip;
	}

	public void setZip(String zip) {
		this.zip = zip;
	}

	public String getAddress() {
		return address;
	}

	public void setAddress(String address) {
		this.address = address;
	}

	public Date getDtime() {
		return dtime;
	}

	public void setDtime(Date dtime) {
		this.dtime = dtime;
	}

	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public double getMoney() {
		return money;
	}

	public void setMoney(double money) {
		this.money = money;
	}

	public String getAppuser() {
		return appuser;
	}

	public void setAppuser(String appuser) {
		this.appuser = appuser;
	}

	public Date getAppdate() {
		return appdate;
	}

	public void setAppdate(Date appdate) {
		this.appdate_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(appdate);
		this.appdate = appdate;
	}

	public String getRip() {
		return rip;
	}

	public void setRip(String rip) {
		this.rip = rip;
	}

	public Integer getEnable() {
		return enable;
	}

	public void setEnable(Integer enable) {
		this.enable = enable;
	}

	public Integer getZi_status() {
		return zi_status;
	}

	public void setZi_status(Integer zi_status) {
		this.zi_status = zi_status;
	}

	public Integer getDd_status() {
		return dd_status;
	}

	public void setDd_status(Integer dd_status) {
		this.dd_status = dd_status;
	}

	public String getZf_type() {
		return zf_type;
	}

	public void setZf_type(String zf_type) {
		this.zf_type = zf_type;
	}

	public double getRemainmoney() {
		return remainmoney;
	}

	public void setRemainmoney(double remainmoney) {
		this.remainmoney = remainmoney;
	}

	public String getSerial() {
		return serial;
	}

	public void setSerial(String serial) {
		this.serial = serial;
	}

	public String getSerialFlagNo() {
		return serialFlagNo;
	}

	public void setSerialFlagNo(String serialFlagNo) {
		this.serialFlagNo = serialFlagNo;
	}

	public Integer getOrderType() {
		return orderType;
	}

	public void setOrderType(Integer orderType) {
		this.orderType = orderType;
	}

	public Date getPaytime() {
		return paytime;
	}

	public void setPaytime(Date paytime) {
		this.paytime_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(paytime);
		this.paytime = paytime;
	}

	public double getSumGoodsPrice() {
		return sumGoodsPrice;
	}

	public void setSumGoodsPrice(double sumGoodsPrice) {
		this.sumGoodsPrice = sumGoodsPrice;
	}

	public double getSendFee() {
		return sendFee;
	}

	public void setSendFee(double sendFee) {
		this.sendFee = sendFee;
	}

	public Date getTakeGoodsTime() {
		return takeGoodsTime;
	}

	public void setTakeGoodsTime(Date takeGoodsTime) {
		this.takeGoodsTime_str = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss")
				.format(takeGoodsTime);
		this.takeGoodsTime = takeGoodsTime;
	}

	public String getCancelReason() {
		return cancelReason;
	}

	public void setCancelReason(String cancelReason) {
		this.cancelReason = cancelReason;
	}

	public String getAppdate_str() {
		return appdate_str;
	}

	public void setAppdate_str(String appdate_str) {
		this.appdate_str = appdate_str;
	}

	public String getPaytime_str() {
		return paytime_str;
	}

	public void setPaytime_str(String paytime_str) {
		this.paytime_str = paytime_str;
	}

	public String getTakeGoodsTime_str() {
		return takeGoodsTime_str;
	}

	public void setTakeGoodsTime_str(String takeGoodsTime_str) {
		this.takeGoodsTime_str = takeGoodsTime_str;
	}

	public String getProduct_ids() {
		return product_ids;
	}

	public void setProduct_ids(String product_ids) {
		this.product_ids = product_ids;
	}

	public String getCar_ids() {
		return car_ids;
	}

	public void setCar_ids(String car_ids) {
		this.car_ids = car_ids;
	}

	public double getPayMoney() {
		return payMoney;
	}

	public void setPayMoney(double payMoney) {
		this.payMoney = payMoney;
	}

	public Integer getIs_quan() {
		return is_quan;
	}

	public void setIs_quan(Integer is_quan) {
		this.is_quan = is_quan;
	}

	public Integer getQuan_id() {
		return quan_id;
	}

	public void setQuan_id(Integer quan_id) {
		this.quan_id = quan_id;
	}

	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

	public String getLongitude() {
		return longitude;
	}

	public void setLongitude(String longitude) {
		this.longitude = longitude;
	}

	public String getLatitude() {
		return latitude;
	}

	public void setLatitude(String latitude) {
		this.latitude = latitude;
	}

	public Integer getIs_send() {
		return is_send;
	}

	public void setIs_send(Integer is_send) {
		this.is_send = is_send;
	}
	
	

}
